/**
 * Generate time : 2011-06-07 15:36:08
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMTeammaterialplan
 * 
 */
public class ZMCMTeammaterialplan extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdYear = " "; /* 年份 */
	private String fdMonth = " "; /* 月份 */
	private String fdApplicationDate = " "; /* 申请日期 */
	private String fdApplicationDeparment = " "; /* 申请单位 */
	private String fdPlanType = " "; /* 计划类别 */
	private String fdPlanStatus = " "; /* 计划状态 */
	private String fdIsgenerateStockPlan = " "; /* 是否生成采购计划 */
	private String fdAuditDepartment = " "; /* 审核单位 */
	private String fdApprovePeople = " "; /* 审批人 */
	private String fdEditor = " "; /* 编制人 */
	private String fdEditInstruction = " "; /* 编制说明 */
	private String fdHistory = " "; /* 操作历史 */
	private String fdRemark = " "; /* 备注 */

	// 新加字段
	private String fdPlanSum = "";// 计划总价
	private String fdMaterialSum = "";// 材料费用额度

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdYear");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("年份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMonth");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("月份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApplicationDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("申请日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApplicationDeparment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("申请单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlanType");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("计划类别");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlanStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("计划状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsgenerateStockPlan");
		eiColumn.setFieldLength(5);
		eiColumn.setDescName("是否生成采购计划");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAuditDepartment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("审核单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdApprovePeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("审批人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEditor");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEditInstruction");
		eiColumn.setFieldLength(2000);
		eiColumn.setDescName("编制说明");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdHistory");
		eiColumn.setFieldLength(2000);
		eiColumn.setDescName("操作历史");
		eiMetadata.addMeta(eiColumn);
		
		// 新加列
		eiColumn = new EiColumn("fdPlanSum");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("计划总价");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialSum");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("材料费用额度");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCMTeammaterialplan() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdYear - 年份
	 * 
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}

	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}

	/**
	 * get the fdMonth - 月份
	 * 
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}

	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}

	/**
	 * get the fdApplicationDate - 申请日期
	 * 
	 * @return the fdApplicationDate
	 */
	public String getFdApplicationDate() {
		return this.fdApplicationDate;
	}

	/**
	 * set the fdApplicationDate - 申请日期
	 */
	public void setFdApplicationDate(String fdApplicationDate) {
		this.fdApplicationDate = fdApplicationDate;
	}

	/**
	 * get the fdApplicationDeparment - 申请单位
	 * 
	 * @return the fdApplicationDeparment
	 */
	public String getFdApplicationDeparment() {
		return this.fdApplicationDeparment;
	}

	/**
	 * set the fdApplicationDeparment - 申请单位
	 */
	public void setFdApplicationDeparment(String fdApplicationDeparment) {
		this.fdApplicationDeparment = fdApplicationDeparment;
	}

	/**
	 * get the fdPlanType - 计划类别
	 * 
	 * @return the fdPlanType
	 */
	public String getFdPlanType() {
		return this.fdPlanType;
	}

	/**
	 * set the fdPlanType - 计划类别
	 */
	public void setFdPlanType(String fdPlanType) {
		this.fdPlanType = fdPlanType;
	}

	/**
	 * get the fdPlanStatus - 计划状态
	 * 
	 * @return the fdPlanStatus
	 */
	public String getFdPlanStatus() {
		return this.fdPlanStatus;
	}

	/**
	 * set the fdPlanStatus - 计划状态
	 */
	public void setFdPlanStatus(String fdPlanStatus) {
		this.fdPlanStatus = fdPlanStatus;
	}

	/**
	 * get the fdIsgenerateStockPlan - 是否生成采购计划
	 * 
	 * @return the fdIsgenerateStockPlan
	 */
	public String getFdIsgenerateStockPlan() {
		return this.fdIsgenerateStockPlan;
	}

	/**
	 * set the fdIsgenerateStockPlan - 是否生成采购计划
	 */
	public void setFdIsgenerateStockPlan(String fdIsgenerateStockPlan) {
		this.fdIsgenerateStockPlan = fdIsgenerateStockPlan;
	}

	/**
	 * get the fdAuditDepartment - 审核单位
	 * 
	 * @return the fdAuditDepartment
	 */
	public String getFdAuditDepartment() {
		return this.fdAuditDepartment;
	}

	/**
	 * set the fdAuditDepartment - 审核单位
	 */
	public void setFdAuditDepartment(String fdAuditDepartment) {
		this.fdAuditDepartment = fdAuditDepartment;
	}

	/**
	 * get the fdApprovePeople - 审批人
	 * 
	 * @return the fdApprovePeople
	 */
	public String getFdApprovePeople() {
		return this.fdApprovePeople;
	}

	/**
	 * set the fdApprovePeople - 审批人
	 */
	public void setFdApprovePeople(String fdApprovePeople) {
		this.fdApprovePeople = fdApprovePeople;
	}

	/**
	 * get the fdEditor - 编制人
	 * 
	 * @return the fdEditor
	 */
	public String getFdEditor() {
		return this.fdEditor;
	}

	/**
	 * set the fdEditor - 编制人
	 */
	public void setFdEditor(String fdEditor) {
		this.fdEditor = fdEditor;
	}

	/**
	 * get the fdEditInstruction - 编制说明
	 * 
	 * @return the fdEditInstruction
	 */
	public String getFdEditInstruction() {
		return this.fdEditInstruction;
	}

	/**
	 * set the fdEditInstruction - 编制说明
	 */
	public void setFdEditInstruction(String fdEditInstruction) {
		this.fdEditInstruction = fdEditInstruction;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	
	/**
	 * get the fdHistory - 操作历史
	 * 
	 * @return the fdHistory
	 */
	public String getFdHistory() {
		return this.fdHistory;
	}

	/**
	 * set the fdHistory - 操作历史
	 */
	public void setFdHistory(String fdHistory) {
		this.fdHistory = fdHistory;
	}

	/**
	 * @return the fdPlanSum-计划总价
	 */
	public String getFdPlanSum() {
		return fdPlanSum;
	}

	/**
	 * @param fdPlanSum
	 *            the fdPlanSum to set-计划总价
	 */
	public void setFdPlanSum(String fdPlanSum) {
		this.fdPlanSum = fdPlanSum;
	}
	
	/**
	 * @return the fdMaterialSum-计划总价
	 */
	public String getFdMaterialSum() {
		return fdMaterialSum;
	}

	/**
	 * @param fdMaterialSum
	 *            the fdMaterialSum to set-计划总价
	 */
	public void setFdMaterialSum(String fdMaterialSum) {
		this.fdMaterialSum = fdMaterialSum;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdApplicationDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApplicationDate")), fdApplicationDate));
		setFdApplicationDeparment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApplicationDeparment")), fdApplicationDeparment));
		setFdPlanType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanType")), fdPlanType));
		setFdPlanStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanStatus")), fdPlanStatus));
		setFdIsgenerateStockPlan(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsgenerateStockPlan")), fdIsgenerateStockPlan));
		setFdAuditDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAuditDepartment")), fdAuditDepartment));
		setFdApprovePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdApprovePeople")), fdApprovePeople));
		setFdEditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditor")), fdEditor));
		setFdEditInstruction(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditInstruction")), fdEditInstruction));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdHistory(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHistory")), fdHistory));
		setFdPlanSum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanSum")), fdPlanSum));
		setFdMaterialSum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialSum")), fdMaterialSum));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdYear", StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));
		map.put("fdMonth", StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));
		map.put("fdApplicationDate", StringUtils.toString(fdApplicationDate, eiMetadata.getMeta("fdApplicationDate")));
		map.put("fdApplicationDeparment", StringUtils.toString(fdApplicationDeparment, eiMetadata.getMeta("fdApplicationDeparment")));
		map.put("fdPlanType", StringUtils.toString(fdPlanType, eiMetadata.getMeta("fdPlanType")));
		map.put("fdPlanStatus", StringUtils.toString(fdPlanStatus, eiMetadata.getMeta("fdPlanStatus")));
		map.put("fdIsgenerateStockPlan", StringUtils.toString(fdIsgenerateStockPlan, eiMetadata.getMeta("fdIsgenerateStockPlan")));
		map.put("fdAuditDepartment", StringUtils.toString(fdAuditDepartment, eiMetadata.getMeta("fdAuditDepartment")));
		map.put("fdApprovePeople", StringUtils.toString(fdApprovePeople, eiMetadata.getMeta("fdApprovePeople")));
		map.put("fdEditor", StringUtils.toString(fdEditor, eiMetadata.getMeta("fdEditor")));
		map.put("fdEditInstruction", StringUtils.toString(fdEditInstruction, eiMetadata.getMeta("fdEditInstruction")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));
		map.put("fdHistory", StringUtils.toString(fdHistory, eiMetadata.getMeta("fdHistory")));
		map.put("fdPlanSum", StringUtils.toString(fdPlanSum, eiMetadata.getMeta("fdPlanSum")));
		map.put("fdMaterialSum", StringUtils.toString(fdMaterialSum, eiMetadata.getMeta("fdMaterialSum")));

		return map;

	}
}